<div class="row animate fadeIn">
    <form  class="form-horizontal" >
        <?php foreach ($lookup as $lu) { ?>
        <div class="ibox-title" style="border:none;"><h5 style="color: #00afef"><i>View Look Up</i></h5>
        </div>
        <div class="ibox-content">
            <div class="form-group"><label class="col-lg-3 control-label">Code</label>
                <div class="col-lg-10 input-s">
                    <input type="text" class="form-control" value="<?php echo $lu->lookup_type; ?>" readonly>
                </div>
            </div>
            <div class="form-group"><label class="col-lg-3 control-label">Description</label> 
                <div class="col-lg-11 input-s">
                    <input type="text" value="<?php echo $lu->description; ?>" name="moduleName" class="form-control" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-3 control-label">Enabled</label>
                <div class="col-lg-10 input-s">
                <div class="state icheckbox_square-green <?php echo($lu->enable_flag == 'Y' ? 'checked' : 'normal'); ?>"></div>
                </div>
            </div>
            <?php } ?>
    </form>
             <table class="table table-bordered" style="width:100%;" align="center">
                    <thead>
                        <tr>
                            <th>Code</th>
                            <th>Meaning</th>
                            <th>Description</th>
                            <th>Enable Flag</th>
                        </tr>
                    </thead>
                    <tbody id="resultfound">
                        
                        <?php foreach ($lookupvalues as $luv) { ?>
                        <tr>
                            <td><?php echo $luv->lookup_code; ?></td>
                            <td><?php echo $luv->meaning; ?></td>
                            <td><?php echo $luv->description; ?></td>
                            <td align="center"><div class="state icheckbox_square-green <?php echo($luv->enable_flag == 'Y' ? 'checked' : 'normal'); ?> "></div></td>
                        </tr>
                        <?php } ?>
                    </tbody>
        </table>
        </div>
</div>
<script>
            $(document).ready(function () {
                $('.i-checks').iCheck({
                    checkboxClass: 'icheckbox_square-green',
                    radioClass: 'iradio_square-green',
                });
                $('#viewX').click(function(){
                    close_view();
               });
            });
</script>